package top.tangyh.lamp.care.vo.save;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "IoRecordInVO 出入量保存入参")
public class IoRecordInVO {

    @Schema(description ="主键")
    private Long id;

    @Schema(description = "病人健康号",required=true)
    @NotNull(message = "病人健康号不能为空")
    private String patientIdent;



    @Schema(description = "用户时间轴整点数据传参")
    @NotNull(message = "时间轴时间不能为空")
    private Long timeLong;

    @Schema(description = "项目值",required=true)
    @NotNull(message = "液体量不能为空")
    private String ioValue;

    @Schema(description ="出入量配置id")
    @NotNull(message = "出入量配置不能为空")
    private Long ioId;

    @Schema(description = "类型 1、入量 2、出量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "出入量类型不能为空")
    private Integer isType;

    @Schema(description = "病人住院号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "病人住院号不能为空")
    private String hospitalNumber;

    @Schema(description = "出入量配置code", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "出入量配置code不能为空")
    private String itemCode;

    @NotNull(message = "模块名称不能为空")
    @Schema(description = "模块名称 出量: crl-out,入量: crl-in", requiredMode = Schema.RequiredMode.REQUIRED)
    private String modelCode;



    @Schema(description = "执行用药id")
    private Long yaoId;



    @Schema(description = "来源  hand 手动添加  his 执行用药his过来 bulu 执行用药 补录过来   ")
    @NotNull(message = "数据来源不能为空，出入量添加的 传hand")
    private String source;



    @Schema(description = "实际时间时间戳 用于传参")
    @NotNull(message = "实际时间不能为空")
    private Long realTimeLong;

    @Schema(description = "药名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "药名不能为空")
    private String medication;

    @Schema(description = "是否主要 0否 1 是")
    private Integer isMaster;


}
